import 'package:flutter/material.dart';

import '../../../../core/app_export.dart';
import '../../../../widgets/custom_image_view.dart';


class LevelViewItem extends StatelessWidget {
  final String value;
  final String title;
  const LevelViewItem({super.key, required this.value, required this.title});

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.start,
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Text(title,textAlign: TextAlign.right,style:theme.textTheme.bodySmall,),
        Container(
          margin:const EdgeInsets.all(8),
          padding:const EdgeInsets.all(4),
          decoration: BoxDecoration(
            border: Border.all(color: Colors.yellowAccent),
            borderRadius: BorderRadius.circular(8),
          ),

          child:Row(
            children: [
              Container(
                  margin: EdgeInsets.fromLTRB(
                      16.h, 12.v, 10.h, 12.v),
                  child: CustomImageView(
                      imagePath: ImageConstant.icLevel,
                      height: 24.adaptSize,
                      width: 24.adaptSize),
              ),
              Text(value,style: theme.textTheme.titleLarge),
            ],
          ),
        ),
      ],
    );
  }
}
